import 'package:flutter/material.dart';
import 'package:core/core.dart';

import '../../../helper/config/route.dart';

class SecondPage extends StatelessWidget {
  const SecondPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BaseRoot(
      title: '这是第二个页面',
      body: Center(
        child: InkWell(
          onTap: () => _onTap(context),
          child: Text('这是第二个页面', style: Colors.red.toStyle(28.px).withBold),
        ),
      ),
    );
  }
}

void _onTap(BuildContext context){
  NavigatorHelper.pushNamed(context, RouteName.third);
}
